{extend name="base" /}
{block name="js"}
<script src="__INDEX__/mine/mine.js?v={$v}" type="text/javascript"></script>
{/block}
{block name="main"}
<div class="l-loading" style="display: block" id="htr-loading"></div>
<div class="htr-toolbar">
   {if $staffRoleId == 3}
   <button class="btn btn-green f-right" onclick="javascript:location.href='<?=url("mine/toEdit")?>'">新增</button>
   {/if}	
  <div class='f-left'>  
       <input type="hidden" name="staffId" id="staffId" class="query" value="{$staffId}" />
        <div class='f-left tbr-m'>客户姓名:</div>
        <input type="text" name="user_name"  placeholder='客户姓名' id="user_name" class="query" />
        <div class='f-left tbr-m'>联系方式:</div>
        <input type="text" name="user_phone"  placeholder='联系方式' id="user_phone" class="query" />
        <div class='f-left tbr-m'>疾病类型:</div>
        <select id="diseaseId" name='diseaseId' class='query'>
          <option value="">-请选择-</option>    
          {volist name="diseaseList" id="vo"}
          <option value="{$vo['diseaseId']}">{$vo['diseaseName']}</option>
          {/volist}
        </select> 
        <div class='f-left tbr-m'>客户分类:</div>
        <select id="classifyId" name='classifyId' class='query'>
          <option value="">-请选择-</option>    
          {volist name="classifyList" id="vo"}
          <option value="{$vo['classifyId']}">{$vo['classifyName']}</option>
          {/volist}
        </select> 
        <div class='f-left tbr-m'>消费类型:</div>
        <select id="consume_type" name='consume_type' class='query'>
          <option value="">-请选择-</option>
          <option value="0">系统型</option>
          <option value="1">传统型</option>
          <option value="2">投资型</option>
        </select> 		 
        <div class='f-left tbr-m'>客户类型:</div>
        <select id="type" name='type' class='query'>
          <option value="">-请选择-</option>
          <option value="0">客户转介绍</option>
          <option value="1">业务扁平开发</option>
        </select>     
	   		<input type="button" class="btn btn-blue" onclick="javascript:userQuery()" value="查询">
      </div>
      <div class='f-left'>  
        <div class='f-left tbr-m'>退休单位:</div>
        <input type="text" name="retirement_unit"  placeholder='退休单位' id="retirement_unit" class="query" />
        <div class='f-left tbr-m'>银行卡号:</div>
        <input type="text" name="bank_code"  placeholder='银行卡号' id="bank_code" class="query" />
        <div class='f-left tbr-m'>身份证号:</div>
        <input type="text" name="identity_card"  placeholder='身份证号' id="identity_card" class="query" />
      </div>
	</div>

   <div style="clear:both"></div>
</div>
<div id="maingrid"></div>
<div id='integralBox' style='display:none'>
  <form id='integralForm' autocomplete="off">
  <table class='htr-form htr-box-top'>
     <tr>
        <th width='100'>类型<font color='red'>*</font>：</th>
        <td height='24'>
           <label>
              <input type="radio" id="type1" name="type" class="ipt" value="1" checked>添加
           </label>
           <label>
              <input type="radio" id="type0" name="type" class="ipt" value="0">减少
           </label>
        </td>
     </tr>
     <tr>
        <th>数量<font color='red'>*</font>：</th>
        <td><input type='text' id='num' name="num" class='ipt' placeholder='数量' /></td>
     </tr>
     <tr>
        <th>描述<font color='red'>*</font>：</th>
        <td><textarea type='text' id='desc' name="desc" class='ipt' style="width:200px;height:50px;" placeholder='填写描述'></textarea></td>
     </tr>
  </table>
  </form>
</div>

<!-- 余额--->
<div id='integralBox2' style='display:none'>
    <form id='integralForm2' autocomplete="off">
        <table class='htr-form htr-box-top'>
            <tr>
                <th width='100'>消费类型<font color='red'>*</font>：</th>
                <td height='24'>
                    <label>
                        <input type="radio" id="type1" name="type" class="ipt" value="1" checked>投资
                    </label>
                    <label>
                        <input type="radio" id="type0" name="type" class="ipt" value="2">传统
                    </label>
                    <label>
                        <input type="radio" id="type0" name="type" class="ipt" value="3">系统型
                    </label>
                </td>
            </tr>
            <tr>
                <th>金额<font color='red'>*</font>：</th>
                <td><input type='text' id='money' name="money" class='ipt' placeholder='数量' /></td>
            </tr>
            <tr>
                <th>备注<font color='red'>*</font>：</th>
                <td><textarea type='text' id='desc2' name="desc2" class='ipt' style="width:200px;height:50px;" placeholder='填写描述'></textarea></td>
            </tr>
        </table>
    </form>
</div>
<script>
  $(function(){initGrid({$staffId})});
</script>
{/block}